package com.yanyu.space.file.bean.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yanyu.space.common.core.bean.db.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 文件 实体类
 *
 * @author yanyu
 * @date 2022-11-15
 */
@Data
@TableName("file_info")
@ApiModel(value = "FileInfo对象}", description = "文件")
public class FileInfo extends BaseEntity {

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "原始文件名")
    private String originalFileName;

    @ApiModelProperty(value = "文件名")
    private String fileName;

    @ApiModelProperty(value = "文件大小")
    private Long fileSize;

    @ApiModelProperty(value = "文件类型")
    private String fileType;

    @ApiModelProperty(value = "文件MD5")
    private String fileMd5;

    @ApiModelProperty(value = "文件后缀，如：png、txt")
    private String fileSuffix;

    @ApiModelProperty(value = "桶名")
    private String bucketName;

    @ApiModelProperty(value = "文件访问URL")
    private String fileUrl;

    @ApiModelProperty(value = "上传类型，1：直接上传；2：分片")
    private Integer uploadType;
}
